package game;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

public class ImageManager{

    public static BufferedImage loadImage(String pathname)  {
        BufferedImage background;
        try {
            background = ImageIO.read(new File(pathname));
            return background;
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
